package com.example.android.bean;

import androidx.annotation.NonNull;

import com.chad.library.adapter.base.entity.MultiItemEntity;

import java.util.Date;

public class CarRelease implements MultiItemEntity {
    private static final long serialVersionUID = 1L;

    /**
     * $column.columnComment
     */
    private Long id;

    /**
     * 车主ID
     */
    private Long uid;

    /**
     * 关联车辆ID
     */
    private Long carId;

    /**
     * 可以租售的开始时间
     */
    private String startTime;

    /**
     * 租售结束时间
     */
    private String finishTimew;

    /**
     * 1-待审核2审核通过（可预约）3出租中（已被预约）
     */
    private Integer status;


    private AddCar carInfo;
    private User user;

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    public AddCar getCarInfo() {
        return carInfo;
    }

    public void setCarInfo(AddCar carInfo) {
        this.carInfo = carInfo;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getUid() {
        return uid;
    }

    public void setUid(Long uid) {
        this.uid = uid;
    }

    public Long getCarId() {
        return carId;
    }

    public void setCarId(Long carId) {
        this.carId = carId;
    }


    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getStartTime() {
        return startTime;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public String getFinishTimew() {
        return finishTimew;
    }

    public void setFinishTimew(String finishTimew) {
        this.finishTimew = finishTimew;
    }

    @Override
    public String toString() {
        return "CarRelease{" +
                "id=" + id +
                ", uid=" + uid +
                ", carId=" + carId +
                ", startTime=" + startTime +
                ", finishTimew=" + finishTimew +
                ", status=" + status +
                ", addCar=" + carInfo +
                '}';
    }

    @Override
    public int getItemType() {
        return getStatus();
    }
}
